package com.cong.clause.controller;

import com.cong.clause.config.R;
import com.cong.clause.service.ClauseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @author cong
 * <p>
 * created on 2021/4/16 下午8:29
 */
@RestController
@RequestMapping("clause")
public class ClauseController {

    @Autowired
    private ClauseService service;

    @GetMapping("save")
    public R save() throws IOException {
        String save = service.save();
        System.out.println(save);
        return new R(200,"success",save);

    }
}
